﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketingCompanyv2
{
    public partial class ListCategories : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User.IsInRole("Admin"))
            {
                this.RadGrid1.AutoGenerateColumns = false;
                RadGrid1.AllowAutomaticDeletes = true;
                RadGrid1.AllowAutomaticInserts = true;
                RadGrid1.AllowAutomaticUpdates = true;

                RadGrid1.AutoGenerateDeleteColumn = true;
                RadGrid1.AutoGenerateEditColumn = true;
                RadGrid1.ShowHeader = true;
                RadGrid1.MasterTableView.CommandItemDisplay = Telerik.Web.UI.GridCommandItemDisplay.Top;
            }
        }
    }
}